package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ccm on 2016/8/31 18:36
 */
public class CamboDetailBean {


    private String msg;
    private String code;
    private StoredDTOBean storedDTO;

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public void setStoredDTO(StoredDTOBean storedDTO) {
        this.storedDTO = storedDTO;
    }

    public StoredDTOBean getStoredDTO() {
        return this.storedDTO;
    }


    public static class StoredDTOBean implements Parcelable {


        private String accountId;

        private String storedId;

        private String menuId;

        private String menuUserId;

        private String storedName;

        private String content;

        private String listPic;

        private String balanceSum;

        private String money;

        private String priId;

        private List<LevelListBean> levelList;

        private String progressPic;

        private String menuType;

        private String unit;

        private String button;

        private String detailBtn;

        private String priPic;

        private int bookCount;
        private String contentUrl;

        public String getRechargePic() {
            return rechargePic;
        }

        public void setRechargePic(String rechargePic) {
            this.rechargePic = rechargePic;
        }

        private String rechargePic;

        private List<PrivilegeListBean> privilegeList;
        private List<StoredCardPic> storedCardPic;

        public List<StoredCardPic> getStoredCardPic() {
            return storedCardPic;
        }

        public void setStoredCardPic(List<StoredCardPic> storedCardPic) {
            this.storedCardPic = storedCardPic;
        }

        private String balanceCount;

        public String getContentUrl() {
            return contentUrl;
        }

        public void setContentUrl(String contentUrl) {
            this.contentUrl = contentUrl;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }

        public String getAccountId() {
            return this.accountId;
        }

        public void setStoredId(String storedId) {
            this.storedId = storedId;
        }

        public String getStoredId() {
            return this.storedId;
        }

        public void setMenuId(String menuId) {
            this.menuId = menuId;
        }

        public String getMenuId() {
            return this.menuId;
        }

        public void setMenuUserId(String menuUserId) {
            this.menuUserId = menuUserId;
        }

        public String getMenuUserId() {
            return this.menuUserId;
        }

        public void setStoredName(String storedName) {
            this.storedName = storedName;
        }

        public String getStoredName() {
            return this.storedName;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getContent() {
            return this.content;
        }

        public void setListPic(String listPic) {
            this.listPic = listPic;
        }

        public String getListPic() {
            return this.listPic;
        }

        public void setBalanceSum(String balanceSum) {
            this.balanceSum = balanceSum;
        }

        public String getBalanceSum() {
            return this.balanceSum;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getMoney() {
            return this.money;
        }

        public void setPriId(String priId) {
            this.priId = priId;
        }

        public String getPriId() {
            return this.priId;
        }

        public void setLevelList(List<LevelListBean> levelList) {
            this.levelList = levelList;
        }

        public List<LevelListBean> getLevelList() {
            return this.levelList;
        }

        public void setProgressPic(String progressPic) {
            this.progressPic = progressPic;
        }

        public String getProgressPic() {
            return this.progressPic;
        }

        public void setMenuType(String menuType) {
            this.menuType = menuType;
        }

        public String getMenuType() {
            return this.menuType;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getUnit() {
            return this.unit;
        }

        public void setButton(String button) {
            this.button = button;
        }

        public String getButton() {
            return this.button;
        }

        public void setDetailBtn(String detailBtn) {
            this.detailBtn = detailBtn;
        }

        public String getDetailBtn() {
            return this.detailBtn;
        }

        public void setPriPic(String priPic) {
            this.priPic = priPic;
        }

        public String getPriPic() {
            return this.priPic;
        }

        public void setBookCount(int bookCount) {
            this.bookCount = bookCount;
        }

        public int getBookCount() {
            return this.bookCount;
        }

        public void setPrivilegeList(List<PrivilegeListBean> privilegeList) {
            this.privilegeList = privilegeList;
        }

        public List<PrivilegeListBean> getPrivilegeList() {
            return this.privilegeList;
        }

        public void setBalanceCount(String balanceCount) {
            this.balanceCount = balanceCount;
        }

        public String getBalanceCount() {
            return this.balanceCount;
        }


        public static class StoredCardPic implements Parcelable {

            /**
             * pic : http://image.joplus.cn/2016-09-18/201609180433381820605.png
             * msg : 什么消息好呢
             * url : http://www.baidu.com/
             */

            private String pic;
            private String msg;
            private String url;

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getMsg() {
                return msg;
            }

            public void setMsg(String msg) {
                this.msg = msg;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.pic);
                dest.writeString(this.msg);
                dest.writeString(this.url);
            }

            public StoredCardPic() {
            }

            protected StoredCardPic(Parcel in) {
                this.pic = in.readString();
                this.msg = in.readString();
                this.url = in.readString();
            }

            public static final Creator<StoredCardPic> CREATOR = new Creator<StoredCardPic>() {
                @Override
                public StoredCardPic createFromParcel(Parcel source) {
                    return new StoredCardPic(source);
                }

                @Override
                public StoredCardPic[] newArray(int size) {
                    return new StoredCardPic[size];
                }
            };
        }

        public static class LevelListBean implements Parcelable {

            private int money;
            private String levelName;
            private String menuPic;
            public String getMenuPic() {
                return menuPic;
            }

            public void setMenuPic(String menuPic) {
                this.menuPic = menuPic;
            }

            public void setMoney(int money) {
                this.money = money;
            }

            public int getMoney() {
                return this.money;
            }

            public void setLevelName(String levelName) {
                this.levelName = levelName;
            }

            public String getLevelName() {
                return this.levelName;
            }


            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.money);
                dest.writeString(this.levelName);
                dest.writeString(menuPic);
            }

            public LevelListBean() {
            }

            protected LevelListBean(Parcel in) {
                this.money = in.readInt();
                this.levelName = in.readString();
                menuPic = in.readString();
            }

            public static final Parcelable.Creator<LevelListBean> CREATOR = new Parcelable.Creator<LevelListBean>() {
                @Override
                public LevelListBean createFromParcel(Parcel source) {
                    return new LevelListBean(source);
                }

                @Override
                public LevelListBean[] newArray(int size) {
                    return new LevelListBean[size];
                }
            };
        }

        public static class PrivilegeListBean implements Parcelable {

            private String serName;

            private String freeCount;

            public void setSerName(String serName) {
                this.serName = serName;
            }

            public String getSerName() {
                return this.serName;
            }

            public void setFreeCount(String freeCount) {
                this.freeCount = freeCount;
            }

            public String getFreeCount() {
                return this.freeCount;
            }


            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.serName);
                dest.writeString(this.freeCount);
            }

            public PrivilegeListBean() {
            }

            protected PrivilegeListBean(Parcel in) {
                this.serName = in.readString();
                this.freeCount = in.readString();
            }

            public static final Creator<PrivilegeListBean> CREATOR = new Creator<PrivilegeListBean>() {
                @Override
                public PrivilegeListBean createFromParcel(Parcel source) {
                    return new PrivilegeListBean(source);
                }

                @Override
                public PrivilegeListBean[] newArray(int size) {
                    return new PrivilegeListBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.accountId);
            dest.writeString(this.storedId);
            dest.writeString(this.menuId);
            dest.writeString(this.menuUserId);
            dest.writeString(this.storedName);
            dest.writeString(this.content);
            dest.writeString(this.listPic);
            dest.writeString(this.balanceSum);
            dest.writeString(this.money);
            dest.writeString(this.priId);
            dest.writeTypedList(this.levelList);
            dest.writeString(this.progressPic);
            dest.writeString(this.menuType);
            dest.writeString(this.unit);
            dest.writeString(this.button);
            dest.writeString(this.detailBtn);
            dest.writeString(this.priPic);
            dest.writeInt(this.bookCount);
            dest.writeString(this.contentUrl);
            dest.writeList(this.privilegeList);
            dest.writeString(this.balanceCount);
            dest.writeList(storedCardPic);
            dest.writeString(rechargePic);
        }

        public StoredDTOBean() {
        }

        protected StoredDTOBean(Parcel in) {
            this.accountId = in.readString();
            this.storedId = in.readString();
            this.menuId = in.readString();
            this.menuUserId = in.readString();
            this.storedName = in.readString();
            this.content = in.readString();
            this.listPic = in.readString();
            this.balanceSum = in.readString();
            this.money = in.readString();
            this.priId = in.readString();
            this.levelList = in.createTypedArrayList(LevelListBean.CREATOR);
            this.progressPic = in.readString();
            this.menuType = in.readString();
            this.unit = in.readString();
            this.button = in.readString();
            this.detailBtn = in.readString();
            this.priPic = in.readString();
            this.bookCount = in.readInt();
            this.contentUrl = in.readString();
            this.privilegeList = new ArrayList<PrivilegeListBean>();
            in.readList(this.privilegeList, PrivilegeListBean.class.getClassLoader());
            this.balanceCount = in.readString();
            storedCardPic = new ArrayList<StoredCardPic>();
            in.readList(storedCardPic, StoredCardPic.class.getClassLoader());
            in.readString();
        }

        public static final Parcelable.Creator<StoredDTOBean> CREATOR = new Parcelable.Creator<StoredDTOBean>() {
            @Override
            public StoredDTOBean createFromParcel(Parcel source) {
                return new StoredDTOBean(source);
            }

            @Override
            public StoredDTOBean[] newArray(int size) {
                return new StoredDTOBean[size];
            }
        };
    }
}